package com.qingke.oo;

public class Point {
	private float x = 0;
	private float y = 0;
	
	public Point(float x,float y){
		this.x = x;
		this.y = y;
	}
	
	public Point(){
		
	}
	
	public float getX(){
		return x;
	}
	
	public float getY(){
		return y;
	}
	
	public void setX(float x){
		this.x = x;
	}
	
	public void setY(float y){
		this.y = y;
	}
	
	public void setXY(float x,float y){
		this.x = x;
		this.y = y;
	}
	
	public float[] getXY(){
		float[] i = new float[2];
		i[0] = x;
		i[1] = y;
		return i;
	}
	
	public  String toString(){
		return "("+x+","+y+")";
	}
	
}
